#ifndef __ADDRESS_H_
#define __ADDRESS_H_
#include <arpa/inet.h>
#include <string>
#include <string.h>

using std::string;

namespace SE
{
    class Address
    {
    public:
        Address(const string& ip, unsigned short port);
        Address(const sockaddr_in& addr);

        sockaddr_in* getAddr();
        string getIP() const;
        unsigned short getPort() const;
    
    private:
        sockaddr_in _addr;

    };
}

#endif